logarithmic differentiation fractions